package com.aaa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "Orderform")
public class Orderform {
    @TableId(type = IdType.INPUT)
    private Integer orderid;
    private String userid;
    private Integer goodid;
    private Integer price;
    private Integer number;
    private Integer money;
    private Integer addressid;
    private String orserstate;
    private String tel;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date odate;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date paytime;

    @TableField
    private String username;
    private String gname;
    private Integer gmoney;
    private String province;
    private String city;
    private String address;
}
